/**
 * 文件名：****.java
 * 版权：Copyright Lightkit All Rights Reserved.
 * 描述：*****
 */
package com.lightkits.wms.domain.commons.service;

import com.lightkits.framework.common.model.IResult;

/**
 * WmsCommonsService
 *
 * @author jing.wei@hand-china.com
 * Created on 2019/4/16 19:38
 */
public interface WmsCommonsService {
    /**
     * 负库存校验
     *
     * @param warehouseId 仓库ID 必输
     * @param locationId  货位ID
     * @param adjustQty   调整数量 必输
     * @param uom         单位 必输
     * @return IResult
     */
    IResult checkNegativestock(String warehouseId, String locationId, String adjustQty, String uom);

    /**
     * 仓库货位有效性校验
     *
     * @param warehouseId 仓库Id
     * @param wmAreaId    货位Id
     * @return IResult
     */
    IResult checkLocationParams(String warehouseId, String wmAreaId);

    /**
     * 所有者类型校验
     *
     * @param ownerType 所有者类型
     * @param ownerId   所有者ID
     * @return IResult
     */
    IResult checkOwnerParams(String ownerType, String ownerId);
}
